package cn.stylefeng.guns.modular.business.custom.enums;

public enum PriceLibraryStatusEnum {

    WAIT_CHECK(0, "待审核"),
    COMMON(1, "正常"),
    DISABLED(2, "禁用"),
    REFUSE(3, "审核不通过");

    PriceLibraryStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public int status;

    public String desc;

    public static boolean valid(Integer status) {
        if (status == null) {
            return false;
        }
        PriceLibraryStatusEnum[] pts = PriceLibraryStatusEnum.values();
        for (PriceLibraryStatusEnum pt : pts) {
            if (status == pt.status) {
                return true;
            }
        }
        return false;
    }
}
